#pragma once

#include <QObject>
#include <qtcpserver.h>
#include "ClientHandler.h"
#include <qthread.h>

class MyTcpServer  : public QTcpServer
{
	Q_OBJECT

public:
	MyTcpServer(QObject *parent = nullptr);
	~MyTcpServer();
protected:
	void incomingConnection(qintptr socketDescriptor);
signals:
	void signal_to_thread();
	void signal_to_showMsg(QString strMsg, QString strIp, QString strPort);
private slots:
	void getMsg(QString strMsg, QString strIp, QString strPort);
};
